import 'dart:core';

class DSItem {
  String host;
  int port;
  String user;
  String pwd;
  String db;

  DSItem({this.host, this.port, this.user, this.pwd, this.db});

  DSItem.fromMap(Map<String, dynamic> json)
      : host = json['host'],
        port = json['port'],
        user = json['user'],
        pwd = json['pwd'],
        db = json['db'];

  Map<String, dynamic> toMap() =>
      {'host': host, 'port': port, 'user': user, 'pwd': pwd, 'db': db};
}
